const express = require("express");
const router = express.Router();
const mongoose = require("mongoose");
// import m from "../models/User";
import _ from "lodash";
import { Request, Response } from "express";
import { NextFunction } from "express-serve-static-core";

import utils from "../utils";

import * as config from "../config";

router.get("/", function(req: Request, res: Response, next: NextFunction) {
  console.log(2222, req.cookies);
  // res.cookie("eee", "dddd");
  // res.cookie("bbb", "aaaa");
  res.json({
    code: 200,
    data: config,
    msg: "获取成功"
  });
});

module.exports = router;
